package com.qdu.service.impl;


import java.util.List;


import com.qdu.dao.ExamQuestionDAO;
import com.qdu.entity.ExamQuestion;
import com.qdu.service.ExamQuestionService;


public class ExamQuestionServiceImpl implements ExamQuestionService {
    private ExamQuestionDAO examQuestionDAO;


    public ExamQuestionServiceImpl(ExamQuestionDAO examQuestionDAO) {
        this.examQuestionDAO = examQuestionDAO;
    }


    @Override
    public List<ExamQuestion> getQuestionsByCourse(String courseName) {
        return examQuestionDAO.getQuestionsByCourse(courseName);
    }


    @Override
    public List<String> getAllCourses() {
        return examQuestionDAO.getAllCourses();
    }
}